home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Carousel Volume 2 #1
/
carousel.iso
/
mactosh
/
hc
/
nutritio.sit
/
Nutrition v1.1
/
background_2777.txt
< prev
next >
Wrap
Text File
|
1988-02-13
|
15KB
|
726 lines
-- background: 2777 from stack: in.1
-- bmap block id: 3356
-- flags: 0000
-- background id: 0
-- name: Daily Log
----- HyperTalk script -----
on openCard
if bkgnd field id 6 is empty then exit openCard
put bkgnd field id 58 into totalCal
put line 17 of card field id 28 of card id 8213 into rdaCal
put round ((totalCal/rdaCal) * 100 + .5) into bkgnd field id 59
put bkgnd field id 6 into protein
put line 16 of card field id 28 of card id 8213 into rda
put round ((protein/rda) * 100 + .5) into bkgnd field id 60
end openCard
-- part 1 (field)
-- low flags: 01
-- high flags: 0007
-- rect: left=25 top=97 right=193 bottom=227
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 129
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Breakfasts
----- HyperTalk script -----
on openField
show bkgnd button id 14
end openField
on closeField
hide bkgnd button id 14
end closeField
-- part 2 (field)
-- low flags: 01
-- high flags: 4007
-- rect: left=16 top=212 right=293 bottom=232
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 129
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Lunch
-- part 3 (field)
-- low flags: 01
-- high flags: 0007
-- rect: left=275 top=91 right=204 bottom=489
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 129
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part 4 (field)
-- low flags: 01
-- high flags: 0007
-- rect: left=274 top=225 right=272 bottom=490
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 129
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Snacks
-- part 6 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=339 top=316 right=333 bottom=388
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 129
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part 8 (button)
-- low flags: 00
-- high flags: A004
-- rect: left=166 top=35 right=51 bottom=241
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: New Card
----- HyperTalk script -----
on mouseUp
doMenu "New Card"
put item 1 of the long date into line 1 of background field 6
put the short date into line 2 of background field 6
end mouseUp
-- part 9 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=27 top=38 right=73 bottom=103
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 129
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Date
-- part 10 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=30 top=0 right=22 bottom=55
-- title width / last selected line: 0
-- icon id / first selected line: 1014 / 1014
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Prev Card
----- HyperTalk script -----
on mouseUp
go to previous card of this background
end mouseUp
-- part 11 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=463 top=0 right=22 bottom=488
-- title width / last selected line: 0
-- icon id / first selected line: 1013 / 1013
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Next Card
----- HyperTalk script -----
on mouseUp
go to next card of this background
end mouseUp
-- part 12 (button)
-- low flags: 80
-- high flags: 0000
-- rect: left=243 top=1 right=21 bottom=270
-- title width / last selected line: 0
-- icon id / first selected line: 20689 / 20689
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: New Button
----- HyperTalk script -----
on mouseUp
go home
end mouseUp
-- part 16 (button)
-- low flags: 00
-- high flags: A004
-- rect: left=274 top=35 right=52 bottom=325
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Menus
----- HyperTalk script -----
on mouseUp
visual effect dissolve
push card
go to card id 4827
end mouseUp
-- part 20 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=240 top=0 right=27 bottom=271
-- title width / last selected line: 0
-- icon id / first selected line: 1011 / 1011
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: New Button
----- HyperTalk script -----
on mouseUp
go home
end mouseUp
-- part 13 (field)
-- low flags: 81
-- high flags: 0004
-- rect: left=93 top=32 right=320 bottom=401
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 129
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part 31 (button)
-- low flags: 00
-- high flags: A004
-- rect: left=274 top=60 right=77 bottom=326
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Reset
----- HyperTalk script -----
on mouseUp
answer "Clear all fields of this card?" with "OK" or "Cancel"
if it is "Cancel" then exit mouseUp
repeat with n = 1 to 4
put empty into bkgnd field n
end repeat
put empty into bkgnd field 5
repeat with n = 9 to 29
put empty into bkgnd field n
end repeat
end mouseUp
-- part 18 (field)
-- low flags: 81
-- high flags: 0002
-- rect: left=93 top=32 right=56 bottom=399
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 18
-- style flags: 0
-- line height: 24
-- part name: Expanded view title
-- part 19 (button)
-- low flags: 80
-- high flags: 2002
-- rect: left=381 top=38 right=50 bottom=393
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Close box
----- HyperTalk script -----
on mouseUp
set lockScreen to true
put empty into field id 13
put empty into field id 18
hide field id 13
hide field id 18
hide bkgnd button id 19
set lockScreen to false
end mouseUp
-- part 29 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=150 top=297 right=315 bottom=199
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 129
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Total Carb
-- part 30 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=82 top=315 right=333 bottom=131
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 129
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Total Fat
-- part 33 (button)
-- low flags: 00
-- high flags: 2000
-- rect: left=456 top=39 right=80 bottom=485
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Vitamin stats
----- HyperTalk script -----
on mouseUp
repeat with n = 1 to 8
put n + 10 into j
put n + 18 into k
if field k is empty and field j is empty then next repeat
put 2 * n -1 into l
put field j into line l of card field id 1 of card id 8213
put field k into line l of card field id 11 of card id 8213
end repeat
push card
go to card id 8213
end mouseUp
-- part 34 (field)
-- low flags: 80
-- high flags: 0002
-- rect: left=321 top=111 right=127 bottom=449
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 129
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Vitamin A
-- part 35 (field)
-- low flags: 80
-- high flags: 0002
-- rect: left=317 top=146 right=162 bottom=454
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 129
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Vitamin C
-- part 36 (field)
-- low flags: 80
-- high flags: 0002
-- rect: left=317 top=172 right=187 bottom=455
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 129
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Vitamin B-1
-- part 37 (field)
-- low flags: 80
-- high flags: 0002
-- rect: left=318 top=197 right=213 bottom=455
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 129
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Vitamin B-2
-- part 38 (field)
-- low flags: 80
-- high flags: 0002
-- rect: left=318 top=223 right=240 bottom=456
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 129
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Vitamin B-6
-- part 40 (field)
-- low flags: 80
-- high flags: 0002
-- rect: left=318 top=250 right=267 bottom=456
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 129
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Vitamin B-12
-- part 41 (field)
-- low flags: 80
-- high flags: 0002
-- rect: left=317 top=272 right=289 bottom=458
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 129
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Niacin
-- part 42 (field)
-- low flags: 80
-- high flags: 0002
-- rect: left=316 top=291 right=309 bottom=461
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 129
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Folic Acid
-- part 45 (button)
-- low flags: 00
-- high flags: 2000
-- rect: left=189 top=56 right=93 bottom=225
-- title width / last selected line: 0
-- icon id / first selected line: 14767 / 14767
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: New Button
----- HyperTalk script -----
on mouseUp
push card
visual effect dissolve
go to first card
end mouseUp
-- part 46 (button)
-- low flags: 00
-- high flags: 2000
-- rect: left=107 top=34 right=72 bottom=155
-- title width / last selected line: 0
-- icon id / first selected line: 23078 / 23078
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Order Info
----- HyperTalk script -----
on mouseUp
push card
go to card id 2859
end mouseUp
-- part 48 (field)
-- low flags: 81
-- high flags: 0000
-- rect: left=70 top=86 right=103 bottom=143
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 129
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Ca
-- part 49 (field)
-- low flags: 81
-- high flags: 0000
-- rect: left=69 top=109 right=126 bottom=143
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: P
-- part 50 (field)
-- low flags: 81
-- high flags: 0000
-- rect: left=70 top=134 right=151 bottom=150
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Mg
-- part 51 (field)
-- low flags: 81
-- high flags: 0000
-- rect: left=69 top=158 right=174 bottom=161
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Fe
-- part 52 (field)
-- low flags: 81
-- high flags: 0000
-- rect: left=67 top=181 right=199 bottom=167
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Zn
-- part 53 (field)
-- low flags: 81
-- high flags: 0000
-- rect: left=61 top=211 right=230 bottom=177
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Na
-- part 54 (field)
-- low flags: 81
-- high flags: 0000
-- rect: left=63 top=237 right=254 bottom=169
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: K
-- part 55 (field)
-- low flags: 81
-- high flags: 0000
-- rect: left=64 top=257 right=274 bottom=170
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part 56 (field)
-- low flags: 80
-- high flags: 0000
-- rect: left=63 top=278 right=295 bottom=169
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part 57 (field)
-- low flags: 80
-- high flags: 0000
-- rect: left=64 top=302 right=320 bottom=169
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part 58 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=338 top=297 right=314 bottom=387
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 129
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: TotalCal
-- part 59 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=412 top=296 right=313 bottom=472
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part 60 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=412 top=315 right=332 bottom=472
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part 61 (button)
-- low flags: 00
-- high flags: 8004
-- rect: left=342 top=33 right=57 bottom=435
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Set User Type
----- HyperTalk script -----
on mouseUp
push card
go to card id 5328
end mouseUp